package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService {
    /**
     * 添加商品到购物车
     * @param shoppingCartDTO
     */
    void add(ShoppingCartDTO shoppingCartDTO);

    /**
     * 获取购物车列表
     * @return
     */

    List<ShoppingCart> list(Long userId);


    void delete(Long userId);

    void sub(Long userId, ShoppingCartDTO dishId);
}
